package org.suk.dp.responsibilityChain.example;

/**
 * Description:抽象管理者 <br/>
 * @version V1.0  2017/6/22 10:43  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public abstract class Manager {
    protected String name;
    /**
     * 管理者的上级
     */
    protected Manager superior;

    public Manager(String name) {
        this.name = name;
    }

    public void setSuperior(Manager superior) {
        this.superior = superior;
    }
    /**
     * 申请请求
     * @param request
     */
    abstract public void requestApplications(Request request);
}
